package com.zbkj.crmeb.chant.response;

import com.common.CommonPage;
import com.zbkj.crmeb.store.vo.StoreOrderInfoVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
public class SupplierAccountCenterResponse implements Serializable {

    @ApiModelProperty(value = "累计交易金额")
    private BigDecimal totalMoney;

    @ApiModelProperty(value = "未结算金额")
    private BigDecimal account;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal freezeAccount;

    @ApiModelProperty(value = "已结算金额")
    private BigDecimal closeMoney;

    @ApiModelProperty(value = "储备金余额")
    private BigDecimal reserveMoney;

    @ApiModelProperty(value = "账单列表")
    private CommonPage<SupplierBill> orderList;

    @Data
    @Accessors(chain = true)
    public static class SupplierBill implements Serializable {

        @ApiModelProperty(value = "账单id")
        private Integer billId;

        @ApiModelProperty(value = "主订单id")
        private Integer mainOrderId;

        @ApiModelProperty(value = "创建时间 ")
        private Date createTime;

        @ApiModelProperty(value = "类型 ")
        private String type;

        @ApiModelProperty(value = "采购单号")
        private String orderId;

        @ApiModelProperty(value = "结算状态（0未结算   1已结算）")
        private Integer settlementStatus;

        @ApiModelProperty(value = "金额")
        private BigDecimal money;

        @ApiModelProperty(value = "剩余金额")
        private BigDecimal totalMoney;

        @ApiModelProperty(value = "商品信息")
        private StoreOrderInfoVo product;

        @ApiModelProperty(value = "订单详情")
        private String orderDetail;

    }

}